import MqttService from './service/mqtt_service';
import Logger from './utils/logger'
import Env, { EnvType } from './utils/env'
/**
 * DerucciSDK 主入口类
 * 
 * 对外暴露给用户使用的 SDK 接口类，继承自 MqttService，
 */
export default class DerucciSDK extends MqttService {
  constructor() {
    // @ts-ignore
    console.log("derucciSDK创建时间：", build_time);
    super();
  }
  setDebugMode(isDebug: boolean | undefined) {
    Logger.setIsDebug(isDebug);
  }
  setEnv(env: EnvType) {
    Env.setEnv(env);
  }
}

// 绑定到 window 供 script 标签访问
(window as any).derucci = new DerucciSDK();

